package com.ruoyi.products.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 选品信息对象 buss_products
 *
 * @author star
 * @date 2025-06-03
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品名称 */
    @Excel(name = "产品类型")
    private String productType;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private Integer productPublish;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal productPrice;

    /** 佣金 */
    @Excel(name = "佣金")
    private BigDecimal productBack;

    /** 佣金比例 */
    @Excel(name = "佣金比例")
    private BigDecimal productProfit;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer productInventory;

    /** 销量 */
    @Excel(name = "销量")
    private Integer productSales;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer productReview;

    private List<Video> videoList;

    private List<Img> imgList;

    //排序字段
    private String sortType;

    private String sortOrder;

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public List<Video> getVideoList() {
        return videoList;
    }

    public void setVideoList(List<Video> videoList) {
        this.videoList = videoList;
    }

    public List<Img> getImgList() {
        return imgList;
    }

    public void setImgList(List<Img> imgList) {
        this.imgList = imgList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }

    public void setProductPublish(Integer productPublish)
    {
        this.productPublish = productPublish;
    }

    public Integer getProductPublish()
    {
        return productPublish;
    }

    public void setProductPrice(BigDecimal productPrice)
    {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice()
    {
        return productPrice;
    }

    public void setProductBack(BigDecimal productBack)
    {
        this.productBack = productBack;
    }

    public BigDecimal getProductBack()
    {
        return productBack;
    }

    public void setProductProfit(BigDecimal productProfit)
    {
        this.productProfit = productProfit;
    }

    public BigDecimal getProductProfit()
    {
        return productProfit;
    }

    public void setProductInventory(Integer productInventory)
    {
        this.productInventory = productInventory;
    }

    public Integer getProductInventory()
    {
        return productInventory;
    }

    public void setProductSales(Integer productSales)
    {
        this.productSales = productSales;
    }

    public Integer getProductSales()
    {
        return productSales;
    }

    public void setProductReview(Integer productReview)
    {
        this.productReview = productReview;
    }

    public Integer getProductReview()
    {
        return productReview;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productType", getProductType())
            .append("productPublish", getProductPublish())
            .append("productPrice", getProductPrice())
            .append("productBack", getProductBack())
            .append("productProfit", getProductProfit())
            .append("productInventory", getProductInventory())
            .append("productSales", getProductSales())
            .append("productReview", getProductReview())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
